#!/usr/bin/env bash

npm i -g yarn
yarn
yarn build

echo "删除旧文件"
rm -rf docker/app

echo "开始拷贝打包文件"
mkdir docker/app

cp -rf dist/* docker/app
echo "拷贝完成"

cd docker || exit 0

echo "开始打包镜像。。。"

docker build -t magic .

echo "镜像打包完毕！"


